<template>
  <div>
    <button @click="resumeBtn()">开启</button>
    <button @click="pause()">暂停</button>
    <h2>{{countTime===0?'获取验证码':countTime}}</h2>
  </div>
</template>

<script>
import { useCountDown } from '@/compositions/index'
export default {
  setup () {
    return { ...useCountDown(5) }
  }
}
</script>

<style>

</style>
